import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYSTEM: AppRouteRecordRaw = {
  path: '/sys',
  name: 'sys',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '系统管理',
    ignoreCache: true,
    requiresAuth: true,
    icon: 'icon-settings',
    order: 2,
    // sys:sys
    roles: 'system:system',
  },
  children: [
    // {
    //   path: 'major',
    //   name: 'major',
    //   component: () => import('@/views/system/major/index.vue'),
    //   meta: {
    //     locale: '专业管理',
    //     ignoreCache: true,
    //     requiresAuth: true,
    //     // sys:major
    //     roles: 'system:system',
    //   },
    // },

        {
      path: 'teachers',
      name: 'teachers',
      component: () => import('@/views/system/user/index.vue'),
      meta: {
        locale: '后台用户管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'user:teacher',
      },
    },
    {
      path: 'role',
      name: 'role',
      component: () => import('@/views/system/role/index.vue'),
      meta: {
        locale: '角色管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'system:role',
      },
    },
    {
      path: 'permission',
      name: 'permission',
      component: () => import('@/views/system/permission/index.vue'),
      meta: {
        locale: '菜单管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'system:permission',
      },
    },
     {
      path: 'organization',
      name: 'organization',
      component: () => import('@/views/system/organization/index.vue'),
      meta: {
        locale: '组织管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'user:organization',
      },
    },
          {
      path: 'room',
      name: 'room',
      component: () => import('@/views/system/room/index.vue'),
      meta: {
        locale: '房间管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'system:room',
      },
    }, {
      path: 'device',
      name: 'device',
      component: () => import('@/views/system/device/index.vue'),
      meta: {
        locale: '设备管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'system:device',
      },
    },
      {
      path: 'rulesbooking',
      name: 'rulesbooking',
      component: () => import('@/views/rulesbooking/index.vue'),
      meta: {
        locale: '预约规则管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'system:rulebooking',
         },
      
    },
           {
      path: 'class',
      name: 'class',
      component: () => import('@/views/system/classkb/index.vue'),
      meta: {
        locale: '课程表管理',
        ignoreCache: true,
        requiresAuth: true,
        roles: 'system:lesson',
      },
    },
          
    // {
    //   path: 'dictData',
    //   name: 'dictData',
    //   component: () => import('@/views/system/dict/data.vue'),
    //   meta: {
    //     locale: '字典管理',
    //     ignoreCache: true,
    //     requiresAuth: true,
    //     roles: 'sys:dict:data',
    //   },
    // },
    // {
    //   path: 'loginlogs',
    //   name: 'loginlogs',
    //   component: () => import('@/views/system/logs/login.vue'),
    //   meta: {
    //     locale: '登录日志',
    //     ignoreCache: true,
    //     requiresAuth: true,
    //     roles: 'sys:logs',
    //   },
    // },
    // {
    //   path: 'operlogs',
    //   name: 'operlogs',
    //   component: () => import('@/views/system/logs/oper.vue'),
    //   meta: {
    //     locale: '操作日志',
    //     ignoreCache: true,
    //     requiresAuth: true,
    //     hideInMenu: true,
    //     roles: '*',
    //   },
    // },
  ],
};

export default SYSTEM;
